<input type="hidden" class="layui-input" name="apkVersion.id" value="#(apkVersion.id??)"/>
#(token)

<div class="layui-row layui-col-space1 task-row">
    #@colStart("版本号",6)
    <input type="text" class="layui-input" name="apkVersion.version" value="#(apkVersion.version??)" lay-verType='tips'
           lay-verify="" maxlength="100"/>
    #@colEnd()
</div>

<div class="layui-row layui-col-space1 task-row">
    #@colStart("更新内容",6)
    <input type="text" class="layui-input" name="apkVersion.content" value="#(apkVersion.content??)" lay-verType='tips'
           lay-verify="" maxlength="100"/>
    #@colEnd()
</div>

<div class="layui-row layui-col-space1 task-row">
    #@colStart("更新类型",6)
    <input name="apkVersion.type" type="radio" value="0" class="layui-input" lay-filter="type" title="包更新" checked="checked" />
    <input name="apkVersion.type" type="radio" value="1" class="layui-input" lay-filter="type" title="热更新" />
    #@colEnd()
</div>

<div class="layui-row layui-col-space1 task-row" id="apkUrlDiv">
    #@colStart("apk链接",6)
    <input type="text" class="layui-input"  name="apkVersion.apkFileUrl" value="#(apkVersion.file_url??)" lay-verType='tips'
           lay-verify="" maxlength="100"/>
    #@colEnd()
</div>

<div class="layui-row layui-col-space1 task-row" id="fileUrlDiv">
    #@colStart("更新文件",6)
    <input type="checkbox" name="apkVersion.fileUrl" value="common.js" title="common.js"/>
    <input type="checkbox" name="apkVersion.fileUrl" value="floaty_all.js" title="floaty_all.js"/>
    <input type="checkbox" name="apkVersion.fileUrl" value="floatyWindow.js" title="floatyWindow.js"/>
    <input type="checkbox" name="apkVersion.fileUrl" value="joy.dex" title="joy.js" />
    <input type="checkbox" name="apkVersion.fileUrl" value="layout.js" title="layout.js" />
    <input type="checkbox" name="apkVersion.fileUrl" value="login.js" title="login.js" />
    <input type="checkbox" name="apkVersion.fileUrl" value="main.js" title="main.js" />
    <input type="checkbox" name="apkVersion.fileUrl" value="md5.js" title="md5.js"/>
    <input type="checkbox" name="apkVersion.fileUrl" value="newActivity.js" title="newActivity.js" />
    <input type="checkbox" name="apkVersion.fileUrl" value="request.js" title="request.js" />
    <input type="checkbox" name="apkVersion.fileUrl" value="start_item.js" title="start_item.js" />
    <input type="checkbox" name="apkVersion.fileUrl" value="wz.js" title="wz.js" />
    <input type="checkbox" name="apkVersion.fileUrl" value="popcheck.js" title="popcheck.js" />
    <input type="checkbox" name="apkVersion.fileUrl" value="heart.js" title="heart.js" />
    <input type="checkbox" name="apkVersion.fileUrl" value="colors.js" title="colors.js" />
    <input type="checkbox" name="apkVersion.fileUrl" value="nodes.js" title="nodes.js" />
    <input type="checkbox" name="apkVersion.fileUrl" value="tt.js" title="tt.js" />
    <input type="checkbox" name="apkVersion.fileUrl" value="utility.js" title="utility.js" />
    <input type="checkbox" name="apkVersion.fileUrl" value="tt_common.js" title="tt_common.js" />
    <input type="checkbox" name="apkVersion.fileUrl" value="tt_layout.js" title="tt_layout.js" />
    <input type="checkbox" name="apkVersion.fileUrl" value="w_colors.js" title="w_colors.js" />
    <input type="checkbox" name="apkVersion.fileUrl" value="w_layout.js" title="w_layout.js" />
    <input type="checkbox" name="apkVersion.fileUrl" value="w_nodes.js" title="w_nodes.js" />
    <input type="checkbox" name="apkVersion.fileUrl" value="w_utility.js" title="w_utility.js" />
    <input type="checkbox" name="apkVersion.fileUrl" value="ww.js" title="ww.js" />

    #@colEnd()
</div>

#@submitButton()

#define js()
<script type="text/javascript">

    $("#fileUrlDiv").hide();

    layui.use(['element', 'form','jquery'], function(){
        var form = layui.form
            ,element = layui.element
            ,$= layui.$;

        form.on('radio(type)', function(data){
            if(data.value == 1){
                $("#fileUrlDiv").show();
                $("#apkUrlDiv").hide();
                //$("#apkUrlDiv input").val('');
            }else{
                $("#apkUrlDiv").show();
                $("#fileUrlDiv").hide();
                //$("#fileUrlDiv input").val('');
            }
        });
    });
</script>
#end